﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 产品信息
    /// </summary>
    /// <remarks>
    /// typedef struct
    /// {
    ///     T_HIPC_EDID_DATE  date;      // 生产日期
    ///     Uint8 vender[16];   // 厂商
    ///     Uint8 seq[16];     // 序列号
    /// }T_HIPC_PRODUCT_INFO;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_PRODUCT_INFO
    {
        #region Fields

        /// <summary>
        /// 生产日期
        /// </summary>
        public T_HIPC_EDID_DATE date;

        /// <summary>
        /// 厂商
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public byte[] vender;

        /// <summary>
        /// 序列号
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public byte[] seq;

        #endregion
    }
}
